'use strict';

module.exports = function (grunt) {
    grunt.initConfig({

        /*
        browserify: {
            dist: {
                files: {
                    'build/index.js': ['src/**']
                },
                options: {
                    transform: ['glslify']
                }
            }
        },*/
        watch: {
            options: {
                livereload: true,
            },
            livereload: {
                //files: ['shaders/{,**/}*.glsl', 'index.html', 'src/*.js', 'proj/*/*'],
                files: ['proj/*/*'],
                tasks: ['build'],
                options: {
                    spawn: false,
                }
            }
        }
    });

    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-browserify');

    grunt.registerTask('build', ['watch']);

    grunt.registerTask('default', ['build']);
};
